package xidian.vlab.service;

import xidian.vlab.domin.User.Student;
import xidian.vlab.domin.User.Teacher;
import xidian.vlab.dto.QueryDTO;
import xidian.vlab.dto.ResJsonDTO;
import xidian.vlab.dto.UserDTO;


public interface UserService {
    ResJsonDTO login(UserDTO user);
    ResJsonDTO adminLogin(UserDTO user);
    ResJsonDTO logout(String Token);
    ResJsonDTO getInfo(String Token);

    ResJsonDTO createTeacher(Teacher teacher);
    ResJsonDTO getAllTeacher(QueryDTO query);
    ResJsonDTO getAllStudent(QueryDTO query);
    Student getStudentById(Long id);
    Teacher getTeacherById(Long id);

}
